<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<script language=javascript>
javascript:window.history.forward(1);
javascript:window.history.forward(-1);
</script>
<style>
.reportdesign tr.odd {background-color:#C0C0C0;}
.reportdesign tr.even {background-color:#D8D8D8;}
</style>
<html xmlns="http://www.w3.org/1999/xhtml">
<s:set name="webFramework" value="#session['USERROLE']"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LM Design</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="stmenu.js"></script>
</head>
<body>
<div class="bodybox">
<div class="headerbar_top"> Welcome ${currentUserDetails.name}</div>
<div class="header">

</div>
<div class="wrapper">
<div class="navigation">
<a href="http://www.dhtml-menu-builder.com"  style="display:none;visibility:hidden;">Navigation Menu</a>
<!--<script type="text/javascript" src="nav.js"></script>
--><s:if test="%{#webFramework=='Manager'}">	
			
			<script type="text/javascript" src="locatationMngr.js"></script>
		</s:if>
		<s:if test="%{#webFramework=='Admin'}">		
		
			<script type="text/javascript" src="admin.js"></script>
		</s:if>
		<s:if test="%{#webFramework=='Operator'}">	
			<script type="text/javascript" src="operator.js"></script>
		</s:if>
		<s:if test="%{#webFramework=='Authorizer'}">		
			<script type="text/javascript" src="authorizer.js"></script>
		</s:if>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
<!-- navigation end-->
<div class="content">
<h4>All Users</h4>
<s:form action="editOrDeleteUserDetails" method="post" theme="simple">
 
<table>
<tr class="">
	<th class="left border">User ID</th>
	<th class="left border">Jame Insan ID</th>
	<th class="left border">Insan ID</th>
    <th class="left border">Name</th>
    <th class="left border">Address</th>
    <th class="left border">Tehsil/Block</th>
    <th class="left border">District</th>
    <th class="left border">State</th>
    <th class="left border">Country</th>
    <th class="left border">Contact Number</th>
    <th class="left border">Role</th>
    <!--<th class="left border">Status</th>    
	--><th class="left border">Edit</th>
	<th class="left border">Delete</th>
</tr>
<s:iterator value="usersInDatabase" status="reportdesign_stat">
          <tr class="row">
          	<td class="left border"><s:property value="userId" /></td>
          	<td class="left border"><s:property value="jiid" /></td>
            <td class="left border"><s:property value="insanId" /></td>
            <td class="left border"><s:property value="name" /></td>
            <td class="left border"><s:property value="address" /></td>
            <td class="left border"><s:property value="block" /></td>
            <td class="left border"><s:property value="district" /></td>
            <td class="left border"><s:property value="state" /></td>
            <td class="left border"><s:property value="country" /></td>
            <td class="left border"><s:property value="contactNumber" /></td>
            <td class="left border"><s:property value="role" /></td>
            <!--<td class="left border"><s:property value="status" /></td> 
            --><td class="left border">
            	 <s:url id="editUserDetails" action="editOrDeleteUserDetails">
            	 	 <s:param name="userId" value="userId"/>
            	 	 <s:param name="jiid" value="jiid"/>
            	 	 <s:param name="insanId" value="insanId"/>
            	 	 <s:param name="name" value="name"/>
            	 	 <s:param name="address" value="address"/>
            	 	 <s:param name="block" value="block"/>
            	 	 <s:param name="district" value="district"/>
            	 	 <s:param name="state" value="state"/>
            	 	 <s:param name="country" value="country"/>
            	 	 <s:param name="contactNumber" value="contactNumber"/>
            	 	 <s:param name="role" value="role"/>
            	 	 <s:param name="status" value="status"/>            	 	 
            	 	 <s:param name="editOrDelete">edit</s:param>                     
                 </s:url>
                 <s:a href="%{editUserDetails}">Edit</s:a>
            </td>             
            <td class="left border">
            	 <s:url id="deleteUserDetails" action="editOrDeleteUserDetails">            	 	 
                     <s:param name="userId" value="userId"/>
            	 	 <s:param name="jiid" value="jiid"/>
            	 	 <s:param name="insanId" value="insanId"/>
            	 	 <s:param name="name" value="name"/>
            	 	 <s:param name="address" value="address"/>
            	 	 <s:param name="block" value="block"/>
            	 	 <s:param name="district" value="district"/>
            	 	 <s:param name="state" value="state"/>
            	 	 <s:param name="country" value="country"/>
            	 	 <s:param name="contactNumber" value="contactNumber"/>
            	 	 <s:param name="role" value="role"/>
            	 	 <s:param name="status" value="status"/> 
                     <s:param name="editOrDelete">delete</s:param>                                     
                 </s:url>
                 <s:a href="%{deleteUserDetails}">Delete</s:a>
            </td>            
          </tr>
    </s:iterator>
<!--<tr class="row">
    <td class="left border"><a href="editUserDo.html" title="Click here to edit" target="_self">48237</a></td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border ">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
    <td class="left border">&nbsp;</td>
</tr>-->
</table>
</s:form>



</div>
<!-- content end-->
</div> 
<!-- wrapper end-->
<div class="bottom_strip"></div>
<div class="headerbar_bottom">
&copy; Copyright 2011. Dera Sacha Sauda, Sirsa-125055 (Haryana)
<br />
Designed By: DSS IT WING</div>
</div>
</body>
</html>